package net.mgsx.product.t2m.modisco;
import java.util.Collection;

import net.mgsx.product.t2m.modisco.tools.ModiscoUtils;

import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.AbstractMethodDeclaration;
import org.eclipse.gmt.modisco.java.Statement;

public class InstructionList implements IJavaModelQuery<AbstractMethodDeclaration, Collection<Statement>> {
	public Collection<Statement> evaluate(final AbstractMethodDeclaration context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		return ModiscoUtils.getElements(context, Statement.class);
	}
}
